package com.shunli.cterminal.enums;

import com.examples.core.enums.BaseEnum;
import com.examples.core.enums.EnumOperations;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @className: OrderV2StatusEnum
 * @description: TODO
 * @author: DAIYALU
 * @date: 2024/9/10
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum OrderV2StatusEnum implements BaseEnum<String> {

    AIT_PAY("0", "待支付"),
    INCOMPLETE("1", "未完成"),
    PAID("2", "已支付"),
    COMPLETED("3", "已完成(包含部分退款)"),
    CLOSED("4", "已关闭(全部退款、全部退货)"),
    CANCELED("5", "已取消");

    private final String code;
    private final String desc;

    public static OrderV2StatusEnum ofCodeNoisy(String code) {
        return EnumOperations.getByCodeNoisy(OrderV2StatusEnum.class, code);
    }
}
